#include<iostream>
using namespace std;

int factorial(int num)
{
	if (num == 1)
	{
		return num;
	}
	return num*factorial(num-1);
}
int main()
{
	int num = 5;
	cout << factorial(num);
	return 0;
}
